package org.four.web.service;

import org.four.common.model.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "merchant-module")
public interface ConpaynService {

    //公司登陆
    @RequestMapping("company/findUserInfoByAccount")
    ComUserBean findUserInfoByAccount(@RequestParam("userName") String userName);

    //注册
    @RequestMapping("company/regedit")
    Map regedit(@RequestBody ComUserBean comUserBean, @RequestParam("pwd1")String pwd1);

    //完善信息:修改回显
    @RequestMapping("company/addDatum")
    ComUserBean addDatum(@RequestParam("id")Integer id);

    //账号信息
    @RequestMapping("company/companyMessage")
    ResultBean companyMessage(@RequestParam("id")Integer id);

    //完善信息:修改保存数据
    @RequestMapping(value = "company/saveCompanyMessage",consumes="application/json")
    ComUserBean saveCompanyMessage(@RequestBody ComUserBean comUserBean);

    //修改密码
    @RequestMapping("company/editPassWord")
    void editPassWord(@RequestParam("id") Integer id, @RequestParam("md532")String md532);

    //公司：账户查询
    @RequestMapping("company/findCompanyAccoumt")
    ResultBean findCompanyAccoumt(@RequestParam("id") Integer id);

    //公司:绑定账号修改 回显
    @RequestMapping("company/findAccountInfoById")
    ComTel findAccountInfoById(@RequestParam("id") Integer id);

    //公司:绑定账号新增、修改
    @RequestMapping(value = "company/saveCompanyAccount",consumes="application/json")
    void saveCompanyAccount(@RequestBody ComTel comTel);

    //查询公司信息
    @RequestMapping("company/findConypanyMessage")
    ResultBean findConypanyMessage(@RequestParam("id")Integer id);

    //查询公司信息
    @RequestMapping("company/findCompanyMessageById")
    CompanyMessage findCompanyMessageById(@RequestParam("id") Integer id);

    //修改公司信息
    @RequestMapping("company/saveCompanyAccountMessage")
    void saveCompanyAccountMessage(@RequestBody CompanyMessage companyMessage);

    //查询套餐
    @RequestMapping("company/findTaoCan")
    ResultBean findTaoCan(@RequestParam("limit") Integer limit, @RequestParam("page") Integer page);


}
